﻿using System;
using System.Collections.Generic;
using System.Text;
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "LzlLog.config", Watch = true)]

namespace GlobalBase
{
      public  class LzlLog
        {
            public static void Debug(string message)
            {
                if (_log.IsDebugEnabled)
                {
                    _log.Debug("调试信息：" + message + "\r\n\r\n");
                }
            }

            public static void Error(string message)
            {
                if (_log.IsErrorEnabled)
                {
                    _log.Error("错误信息：" + message + "\r\n\r\n");
                }
            }

            public static void Info(string message)
            {
                if (_log.IsInfoEnabled)
                {
                    _log.Info("信息：    " + message + "\r\n\r\n");
                }
            }

            public static void Warn(string message)
            {
                if (_log.IsErrorEnabled)
                {
                    _log.Warn("警告信息：" + message + "\r\n\r\n");
                }
            }
            private static log4net.ILog _log = log4net.LogManager.GetLogger("LzllogFile");
        }
}
